﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlow_TableNames;

namespace LeadThing.AbpZeroTemplate.WorkFlow_TableNames.Dtos
{
    /// <summary>
    /// 业务审批与流程关联表编辑用Dto
    /// </summary>
    [AutoMap(typeof(WorkFlow_TableName))]
    public class WorkFlow_TableNameEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 流程ID
        /// </summary>
        [DisplayName("流程ID")]
        [Required]
        public int FlowID { get; set; }

        /// <summary>
        /// 业务表
        /// </summary>
        [DisplayName("业务表")]
        [MaxLength(50)]
        public string TableName { get; set; }

        /// <summary>
        /// 关联表单的url地址
        /// </summary>
        [DisplayName("关联表单的url地址")]
        [MaxLength(200)]
        public string UrlDetail { get; set; }

        /// <summary>
        /// 关联表的编辑页面URL
        /// </summary>
        [DisplayName("关联表的编辑页面URL")]
        [MaxLength(200)]
        public string UrlEdit { get; set; }

        /// <summary>
        /// 映射的字段名
        /// </summary>
        [DisplayName("映射的字段名")]
        [MaxLength(50)]
        public string ColumnName { get; set; }

        /// <summary>
        /// 映射的主键字段名
        /// </summary>
        [DisplayName("映射的主键字段名")]
        [MaxLength(50)]
        public string FieldKey { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        [DisplayName("是否可用")]
        public bool DelTag { get; set; }

    }
}
